package website.lucaswork.survey.mvc.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

@Component
public class LocalFileUploader implements FileUploader {

    @Autowired
    FileUtil fileUtil;

    @Override
    public String upload(MultipartFile file) throws Exception {
        return fileUtil.uploadToLocal(file);
    }
}
